var time = $('.header-time');
setInterval(function() {
    time.html('现在是:&nbsp;&nbsp;'+moment().format("YYYY年MM月DD日 HH:mm:ss"));
},1000);
$('.header-out').click(function(){
    var r = window.confirm('确定退出吗？');
    if (r) {
        $.ajax({
            url: '/logout',
            success: function(results){
                if (results.pass) {
                    window.location.href = '/login';
                }
            }
        });
    }
});